package com.cjy.service;

import com.cjy.pojo.FasdfsFile;
import com.cjy.pojo.SystemResult;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface FastdfsService {
    SystemResult uploadFile(MultipartFile file, String imageTypeId, String isPrivate);
    SystemResult uploadFile2(MultipartFile file, String imageTypeId, String isPrivate);

    Page<FasdfsFile> getFastDFSByImageType(Long imageTypeId, Pageable pageable);

    SystemResult deleteImage(Long id);

    List<FasdfsFile> findTop();
}
